package cn.formaggie.dao;

import cn.formaggie.entity.model.order.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {

    Order getOrderById(Integer id);

    List<Order> getAllOrders();

    List<Order> findOrders(Map<String,Object> map);

    Integer getOrdersCount(Map<String,Object> map);

    Integer addOrder(Order order);

    Integer modifyOrderInfo(Order order);

    Integer modifyState(Order order);

    Integer deleteOrder(Integer id);
}
